<?php
/**
 * TinyCMS 管理后台首页
 * @author	kelecode@gmail.com
 * @date 	2013-04-27
 */
define('IN_SITE',true);
define('APP_NAME',$_SERVER['OPENSHIFT_APP_NAME']);
define('APP_ROOT', str_replace('\\','/',dirname(__FILE__)));
define('APP_DATA', $_SERVER['OPENSHIFT_DATA_DIR']);
define('APP_TMP', $_SERVER['OPENSHIFT_TMP_DIR']);
define('APP_LOG', APP_DATA .  'logs/');
define('APP_CACHE', APP_TMP . 'cache/');
define('LIB_PATH', substr(APP_ROOT,0,-6) . '/lib/TinyCorePHP');
require LIB_PATH . '/TinyCorePHP.php';
require LIB_PATH . '/page.class.php';
require APP_ROOT . '/control/AppControl.class.php';
Tiny::run();